home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Scope
/
Scope Disk #058 (199x)(Scope PD)(US)[WB].zip
/
Scope Disk #058 (199x)(Scope PD)(US)[WB].adf
/
B1Subs
/
BReq
< prev
next >
Wrap
Text File
|
1989-01-24
|
2KB
|
118 lines
CLEAR ,25000
LIBRARY "intuition.library"
ON BREAK GOSUB Ender
BREAK ON
bRW=2' <- Requester Window Number
ReqFar=50' <- How far it slides up
' ===shrink Basic Output window===
WINDOW 1,"",(0,20)-(330,60),18,-1
COLOR 2,1:CLS
PRINT :PRINT ,"The main program window
' ===Set Up SlideUp Screen===
SCREEN 2,640,ReqFar+16,2,2
WINDOW bRW,,(0,0)-(631,ReqFar),16,2
PALETTE 0,1,1,1
COLOR 2,0
bRWs&=PEEKL(WINDOW(7)+46)
CALL MoveScreen(bRWs&,0,220)
PRINT: PRINT: PRINT ,"A demo."
WINDOW 2
WHILE 1
GOSUB ReqUp
LOCATE 2:PRINT " Press a key or click.
LINE(4,2)-(626,30),3,b
GOSUB WayCheer
GOSUB ReqDown
LOCATE 3,3: PRINT SPACE$(20): LOCATE 3,3
IF Y>0 THEN PRINT X;Y
IF Key$>"" THEN PRINT Key$
GOSUB WayCheer
WEND
'======Wait for Key or Mouse=========
WayCheer:
XY=MOUSE(0): Key$="":X=0:Y=0
WHILE MOUSE(0)=0 AND Key$=""
Key$=INKEY$
IF MOUSE(0)<>0 THEN X=MOUSE(1):Y=MOUSE(2)
WEND
WHILE MOUSE(0)<>0 OR INKEY$>"": WEND
RETURN
'======SLIDE UP=========
ReqUp:
WINDOW bRW,,(0,0)-(631,32),0,2
COLOR 2,1:CLS
FOR I=0 TO ReqFar
CALL MoveScreen(bRWs&,0,-1)
NEXT
RETURN
'======SLIDE DOWN=========
ReqDown:
FOR I=0 TO ReqFar
CALL MoveScreen(bRWs&,0,1)
NEXT
WINDOW CLOSE bRW
RETURN
'======SCROLL END=======
Ender:
TIMER OFF: MOUSE OFF
ON ERROR GOTO EnderOOPS
FOR I=4 TO 2 STEP-1: WINDOW CLOSE I: NEXT
WINDOW 1," ",(0,20)-(330,60),18,-1
FOR I=4 TO 2 STEP-1: SCREEN CLOSE I: NEXT
LIBRARY CLOSE
MENU RESET
CLEAR,25000
COLOR 2,1: CLS: PRINT: PRINT " Thanx, y'all"
PRINT " Click below or press 1,2,3 keys
PRINT: COLOR 1,3
PRINT " 1 2 3 "
PRINT " LEAVE Run Again Stop+LIST ";
ON ERROR GOTO 0
FOR I=1 TO 331 STEP 110: LINE(I,23)-STEP(109,17),2,b: NEXT
WHILE INKEY$>"" OR MOUSE(0)<>0:WEND
TIMER OFF
ON TIMER(1) GOSUB EndChex
TIMER ON
WHILE 1: SLEEP: WEND
EndChex:
a$=INKEY$: XY=MOUSE(0): X=MOUSE(1): Y=MOUSE(2)
IF a$>"" OR (XY<>0 AND Y>24 AND Y<40) THEN
IF a$="1" OR a$="2" OR a$="3" THEN X=VAL(a$)
X=(X+1)/110
IF X=1 THEN SYSTEM
IF X>1 AND X<=2 THEN TIMER OFF: RUN
IF X>2 AND X<=3 THEN
FOR I=1 TO 9:PRINT :NEXT:PRINT "Okee dokee"
LOCATE 3,1:PRINT" ":LIST :END
END IF
END IF
RETURN
EnderOOPS:
RESUME NEXT
EnderEnded: